//
//  CaseCollectionViewCell2.m
//  LiangYa_BObject
//
//  Created by dllo on 15/10/31.
//  Copyright © 2015年 YuHao. All rights reserved.
//

#import "CaseCollectionViewCell2.h"

@implementation CaseCollectionViewCell2

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        

        
        self.myimageview = [[UIImageView alloc] init];
        [self.contentView addSubview:self.myimageview];
        self.myimageview.backgroundColor = [UIColor yellowColor];
        
        self.mylabel1 = [[UILabel alloc] init];
        [self.myimageview addSubview:self.mylabel1];
        self.mylabel1.textColor = [UIColor whiteColor];
        self.mylabel1.font = [UIFont systemFontOfSize:13];
        
        
        
    }
    return self;
    
}

- (void)applyLayoutAttributes:(UICollectionViewLayoutAttributes *)layoutAttributes

{
     self.backgroundColor = [UIColor clearColor];    
    self.myimageview.frame = self.contentView.bounds;
    self.mylabel1.frame = CGRectMake(0, cellHeight-30, cellWidth, 30);
}








@end
